/**
 * @fileoverview Control template for the Sphero mode.
 *
 * @license Copyright 2015 The Coding with Chrome Authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 * @author mbordihn@google.com (Markus Bordihn)
 */
{namespace cwc.soy.mode.sphero.sprkPlus.Control autoescape="strict"}


/**
 * Control template.
 */
{template .template}
  {@param prefix: string}

  <div id="{$prefix}body">
    Use the buttons belows, the cursor keys or an gamepad to control the Sphero manual.<br>

    <div id="{$prefix}buttons">
      <div id="{$prefix}move-left" class="icon_36px icon_button">keyboard_arrow_left</div>
      <div id="{$prefix}move-forward" class="icon_36px icon_button">keyboard_arrow_up</div>
      <div id="{$prefix}move-backward" class="icon_36px icon_button">keyboard_arrow_down</div>
      <div id="{$prefix}move-right" class="icon_36px icon_button">keyboard_arrow_right</div>
    </div>

    <div id="{$prefix}commands">
      <div id="{$prefix}color">
        <input type="color" id="{$prefix}color-picker" name="color" value="#ffffff" />
      </div>
      <div class="mdl-tooltip" for="{$prefix}color">
       Change the color of the LED.
      </div>
      <div id="{$prefix}flash" class="icon_36px icon_button">flare</div>
      <div class="mdl-tooltip" for="{$prefix}flash">
        Let the connected unit flash.
      </div>
      <div id="{$prefix}sleep" class="icon_36px icon_button">local_hotel</div>
      <div class="mdl-tooltip" for="{$prefix}sleep">
        Puts the connected unit to sleep.
      </div>
      <div id="{$prefix}stop" class="icon_36px icon_button">pan_tool</div>
      <div class="mdl-tooltip" for="{$prefix}stop">
        Stops the executing of the code and the connected unit. (Space-key)
      </div>
    </div>
  </div>
{/template}
